PCreateTOC(const char * sTitle, PMBool bReplace, PMBool bBook, eTOC cFormat,
const char * sBetString, PMBool hHiddenLayers);
Use sBetString only with cFormat. Use the sBetString parameter only if you specify page numbers with the cFormat parameter.const char * sTitle;
Title of table of contents (to a maximum of 31 characters)
Specify an empty string ("") for no titlePMBool bReplace;
false to create a new table of contents
true to replace an existing table of contentsPMBool bBook;
false to include only currently open publication in table of contents
true to include all publications in book listeTOC cFormat;
kTOCNoPageNums (0) to omit page numbers from table of contents
kTOCPageNumsBefore (1) to have page numbers appear before entry
kTOCPageNumsAfter (2) to have page numbers appear after entryconst char * sBetString;
Characters to be inserted between entry and page number (maximum of seven)PMBool bHiddenLayers;
true include TOC items from hidden layers
false do not include items from hidden layers.
Table of contents without a title. To create a table of contents without a title, specify an empty string ("").
Placing a new table of contents. When you create a new table of contents (by entering 0 as the bReplace value), PageMaker does not place it on the page, but displays the loaded text icon. To place the new table of contents, follow PCreateTOC with the PPlace command.
Special characters. For a list of special characters and the keystrokes needed to enter them, refer to Adobe PageMaker 6.5 Help > Shortcuts >Special Characters.
Example. The following example creates a table of contents, titled "Contents," which replaces an existing table of contents, does not include book publications, and specifies that the page number comes after the entry. The character between the entry and page number is a tab, which results in a right-aligned page number preceded by leader dots.
PCreateTOC("Contents" true, false, kTOCPageNumsAfter, "^t", false);
Adobe PageMaker 6.5 Help > Commands > Utilities > Create TOC
Adobe PageMaker 6.5 Help > Shortcuts > Special Characters
Comments or suggestions? Contact Adobe Developer Support